package com.zhuiYun.project.api.slideshow.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName: SlideShowEntity
 * @descriptions: pc轮播图实体类
 * @Author: zq
 * @Date 2023/4/5 21:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "slideshow")
public class SlideShowEntityVO {

    /**
     * @Author 小江
     * @Description //TODO 主键id
     * @Date 16:30 2023/4/4
     **/
    @Id
    @ApiModelProperty("主键id新增时无需填写")
    private  Integer id;

    /**
     * @Author 小江
     * @Description //TODO 图片id
     * @Date 16:31 2023/4/4
     **/
    @ApiModelProperty("图片id")
    private  String imageId;
    /*
     * @Author 小江
     * @Description //TODO 状态  0 pc 1 app
     * @Date 16:05 2023/4/4
     **/
    @ApiModelProperty("状态   0 pc 1 app")
    private  Integer pcOrApp;

    /**
     * @Author 小江
     * @Description //TODO 删除标识 0显示 1删除
     * @Date 16:32 2023/4/4
     **/
    private   Integer deleteFlag;

    /**
     * @Author 小江
     * @Description //TODO 轮播图路径id
     * @Date 10:02 2023/4/11
     **/
    private  Integer carouselId;


    /**
     * @Author 小江
     * @Description //TODO 保存diy或商品
     * @Date 10:11 2023/4/11
     **/
    private   Integer commdiyId;

    /**
     * @Author 小江
     * @Description //TODO 创建时间
     * @Date 16:28 2023/4/4
     **/
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * @Author 小江
     * @Description //TODO 类型
     * @Date 16:28 2023/4/4
     **/
    private Integer diycomm_type;

    /**
     * @Author 小江
     * @Description //TODO 跳转路径
     * @Date 16:28 2023/4/4
     **/
    private String url;

    private String back;
}
